<template>
    <div>
        News:{{ this.$route.params.type }}-{{ this.$route.params.num }}
        <div>
            <button @click="clickHandler">跳转到Home</button>
        </div>
    </div>
</template>
<script>
export default {
    name:"News",
    methods:{
        clickHandler(){
            // 编程式导航
            this.$router.push("/home")
        }
    }
}
</script>
<style scoped>

</style>
